/**
 * 庆云县地图数据 - GeoJSON格式
 * 包含庆云县的行政区域边界坐标信息
 * 数据来源：行政区划数据
 * 坐标系：WGS84
 */

// GeoJSON 类型定义
export interface GeoJSONFeature {
  type: 'Feature';
  properties: {
    adcode: number;        // 行政区划代码
    name: string;          // 区域名称
    center: [number, number];    // 中心点坐标 [经度, 纬度]
    centroid: [number, number];  // 质心坐标 [经度, 纬度]
    childrenNum: number;   // 子区域数量
    level: string;         // 行政级别
    acroutes: number[];    // 行政区划路径
    parent: {
      adcode: number;      // 父级行政区划代码
    };
  };
  geometry: {
    type: 'MultiPolygon';
    coordinates: number[][][][]; // 多边形坐标数组
  };
}

export interface GeoJSONFeatureCollection {
  type: 'FeatureCollection';
  features: GeoJSONFeature[];
}

// 庆云县地图数据
export const qingyunMapData: any = {
  type: 'FeatureCollection',
  features: [
    {
      type: 'Feature',
      properties: {
        adcode: 371423,
        name: '庆云县',
        center: [117.420507, 37.827724],
        centroid: [117.45604, 37.795352],
        childrenNum: 0,
        level: 'district',
        acroutes: [100000, 370000, 371400],
        parent: {
          adcode: 371400
        }
      },
      geometry: {
        type: 'MultiPolygon',
        coordinates: [
				[
					[117.38274738218, 37.759861473537],
					[117.37752138271, 37.759403469518],
					[117.37775838254, 37.756875443662],
					[117.37739338267, 37.756875443662],
					[117.37659938245, 37.756722442395],
					[117.37621338266, 37.76115048689],
					[117.3745393829, 37.761048485583],
					[117.3745393829, 37.76167649159],
					[117.37357338226, 37.761638491459],
					[117.37016238211, 37.761506490069],
					[117.37041938292, 37.758266457514],
					[117.37076338288, 37.758232457663],
					[117.37104238254, 37.758334458591],
					[117.37286638208, 37.758436459379],
					[117.37299438213, 37.756485440267],
					[117.37117038259, 37.756213437309],
					[117.37026938224, 37.756095436237],
					[117.36878938265, 37.755976434972],
					[117.36876638219, 37.756094436233],
					[117.3686813827, 37.756247437379],
					[117.36863838214, 37.756518440213],
					[117.36842338206, 37.756518440213],
					[117.36825138253, 37.756484440269],
					[117.36823038261, 37.75631443818],
					[117.36823038261, 37.756213437309],
					[117.36730738252, 37.756111436297],
					[117.36722138231, 37.756026435228],
					[117.36567638243, 37.755890434451],
					[117.36550538272, 37.755873434336],
					[117.36140638266, 37.755738432576],
					[117.3614283824, 37.7554494295],
					[117.36057038261, 37.7554494295],
					[117.36022638265, 37.755398429551],
					[117.35977638239, 37.755432429284],
					[117.35962538278, 37.755398429551],
					[117.35921838217, 37.755466429712],
					[117.35378938231, 37.755263427634],
					[117.35321338255, 37.764593520705],
					[117.35353438204, 37.764663521423],
					[117.35372738239, 37.764934524672],
					[117.35462938256, 37.764968524994],
					[117.35473638269, 37.764799523115],
					[117.35583038248, 37.764900524335],
					[117.35587338214, 37.765341528334],
					[117.35576638291, 37.765494530237],
					[117.35570238244, 37.767207547203],
					[117.35574438227, 37.767563550344],
					[117.35574438227, 37.767716551911],
					[117.35565938278, 37.767954554114],
					[117.35529438291, 37.773127606272],
					[117.35527038262, 37.773282607231],
					[117.35505538253, 37.7735376103],
					[117.35451938206, 37.773622611128],
					[117.35445538248, 37.773486609331],
					[117.35409038261, 37.7735376103],
					[117.35411238235, 37.773919613729],
					[117.35407438272, 37.774531620167],
					[117.35398338248, 37.77602263476],
					[117.35544238215, 37.77602263476],
					[117.3554853827, 37.77626863719],
					[117.35653638284, 37.776353638428],
					[117.35650938218, 37.776696641578],
					[117.3563433825, 37.778761662574],
					[117.35649438211, 37.778778662398],
					[117.35574238262, 37.781780692071],
					[117.3571163828, 37.782831702796],
					[117.3572873825, 37.782882702999],
					[117.35783838215, 37.783753712354],
					[117.35811738271, 37.784397718269],
					[117.35809638279, 37.784499719317],
					[117.35781738223, 37.785431728987],
					[117.35755938249, 37.787009744743],
					[117.3574093827, 37.787653750682],
					[117.35732338249, 37.788552759786],
					[117.35757838275, 37.788569760197],
					[117.35757838275, 37.788467759087],
					[117.35811438233, 37.78853576008],
					[117.3629213824, 37.788806762442],
					[117.36298538287, 37.788077755466],
					[117.36300738262, 37.787975754386],
					[117.36335038275, 37.787975754386],
					[117.36285538228, 37.792165795735],
					[117.36038738231, 37.792216796595],
					[117.36040938205, 37.794810822247],
					[117.35729738255, 37.794658820867],
					[117.35699837381, 37.796779841818],
					[117.3566403826, 37.79978587187],
					[117.35773438239, 37.799683870628],
					[117.35874338269, 37.799633870789],
					[117.3617253825, 37.799853872383],
					[117.36158638258, 37.802025894418],
					[117.36157538271, 37.80219389628],
					[117.36033138223, 37.802311896895],
					[117.35981638257, 37.802311896895],
					[117.3593863824, 37.802447898886],
					[117.35949438236, 37.803227906386],
					[117.35936538248, 37.803244906261],
					[117.35968638288, 37.80516692581],
					[117.36157138251, 37.805072924602],
					[117.36117038266, 37.808744961126],
					[117.3607123829, 37.812939003076],
					[117.36135638243, 37.813278006975],
					[117.3619573823, 37.81493902296],
					[117.36268738205, 37.814804021893],
					[117.36332738228, 37.816671040222],
					[117.36015238213, 37.817315046606],
					[117.36088138205, 37.818976063303],
					[117.35972238286, 37.818163055294],
					[117.35800638238, 37.818773061751],
					[117.35916438264, 37.81924806597],
					[117.36015238213, 37.819621070011],
					[117.36045238261, 37.819722070828],
					[117.36023738252, 37.820027074277],
					[117.36002338226, 37.819960073029],
					[117.35993738205, 37.820197076036],
					[117.36045238261, 37.820400077928],
					[117.36028038218, 37.820570079538],
					[117.35967938231, 37.82029907662],
					[117.35869238264, 37.820604079813],
					[117.35877838285, 37.820807082006],
					[117.35959438281, 37.820807082006],
					[117.36019438286, 37.8222990965],
					[117.3604563828, 37.822252096527],
					[117.36032738293, 37.821676090218],
					[117.36140038281, 37.821371087197],
					[117.36165838255, 37.821710090693],
					[117.36187238281, 37.822151094915],
					[117.36230138226, 37.822151094915],
					[117.3625593829, 37.823337107412],
					[117.36298838235, 37.823337107412],
					[117.36316038278, 37.823066104719],
					[117.36358938222, 37.822863102353],
					[117.36393238236, 37.822761101055],
					[117.36393238236, 37.823100104554],
					[117.36624838289, 37.822692100536],
					[117.36689838227, 37.822586099746],
					[117.36698438248, 37.8211280847],
					[117.37342238265, 37.821433088016],
					[117.37703738211, 37.820838081949],
					[117.37924838217, 37.820474078385],
					[117.38096038245, 37.820192075385],
					[117.38104538284, 37.819887072617],
					[117.3809173828, 37.819447068208],
					[117.38044538279, 37.818244056394],
					[117.38086538292, 37.81814005535],
					[117.38100538266, 37.81810605465],
					[117.38167038211, 37.819971073503],
					[117.38199238232, 37.819886072767],
					[117.38219738236, 37.820183075347],
					[117.38294838292, 37.820005074054],
					[117.38217538262, 37.817869052735],
					[117.38338838224, 37.817590049363],
					[117.38307738279, 37.81673304144],
					[117.38438638267, 37.816817041657],
					[117.38380738254, 37.815207025945],
					[117.38387138211, 37.815173025313],
					[117.38554538276, 37.81485102235],
					[117.38565238289, 37.814631020012],
					[117.38582438242, 37.814495018459],
					[117.38590938281, 37.814326016977],
					[117.38842038244, 37.814478018335],
					[117.38882838287, 37.816343037305],
					[117.39101638246, 37.815936033452],
					[117.39101638246, 37.815817031992],
					[117.39198238221, 37.815682030401],
					[117.39204638268, 37.815783031641],
					[117.39511538252, 37.8151220254],
					[117.39590938274, 37.81722404633],
					[117.39914838247, 37.816446038144],
					[117.40000638226, 37.818599060079],
					[117.40080038248, 37.818412057551],
					[117.40056438247, 37.817819051725],
					[117.40092938235, 37.81773405135],
					[117.40095038226, 37.817463048663],
					[117.40204438206, 37.817242046417],
					[117.4025503824, 37.817566049359],
					[117.40397938282, 37.818408058068],
					[117.40473838288, 37.818855062047],
					[117.40619838237, 37.818685060745],
					[117.40619838237, 37.819295066437],
					[117.40658438216, 37.819295066437],
					[117.40671238221, 37.81970207093],
					[117.40697038285, 37.81970207093],
					[117.40709938272, 37.819058064082],
					[117.40894438218, 37.819228065944],
					[117.40903038239, 37.816041033954],
					[117.41104738228, 37.816210035768],
					[117.41113338249, 37.811429988051],
					[117.41297838285, 37.811497989198],
					[117.41304638262, 37.809240966598],
					[117.41373338271, 37.809308966922],
					[117.41409838258, 37.806697941013],
					[117.41366838241, 37.806646940214],
					[117.41364738249, 37.805832932662],
					[117.41263838219, 37.805832932662],
					[117.41261738227, 37.80552792948],
					[117.41409838258, 37.805663930517],
					[117.41420538271, 37.804188915892],
					[117.4156003828, 37.804254916485],
					[117.4156003828, 37.802932903185],
					[117.41581438216, 37.802932903185],
					[117.41590038238, 37.80300090435],
					[117.41605038216, 37.803118905095],
					[117.41620038285, 37.803118905095],
					[117.41630838281, 37.803135905704],
					[117.41643638285, 37.803135905704],
					[117.41712338204, 37.803322907178],
					[117.41736838226, 37.802514898992],
					[117.41713238226, 37.80232889769],
					[117.41691738218, 37.802141895829],
					[117.41676738239, 37.801904893063],
					[117.41666038226, 37.80173489177],
					[117.41659638269, 37.801582889731],
					[117.41653138239, 37.801378887811],
					[117.41693938282, 37.801378887811],
					[117.41710238213, 37.801575889751],
					[117.41735938205, 37.801830892448],
					[117.41759538205, 37.802067894742],
					[117.41781038213, 37.802203895762],
					[117.41804638213, 37.802389898089],
					[117.41836838235, 37.802559900004],
					[117.41864738291, 37.802728901445],
					[117.42044438268, 37.80366291058],
					[117.41950738235, 37.802969904015],
					[117.4190783829, 37.802680900995],
					[117.41831538265, 37.802311896895],
					[117.41777938217, 37.801853892504],
					[117.41749538249, 37.801412888407],
					[117.41752138243, 37.800141875699],
					[117.41758038288, 37.799404868098],
					[117.41848538252, 37.798959863749],
					[117.41904738294, 37.798693860984],
					[117.42054838244, 37.797997854203],
					[117.42113138277, 37.797658850428],
					[117.4210023829, 37.796607840464],
					[117.42250438222, 37.796743841601],
					[117.42220338282, 37.794369817983],
					[117.4253793828, 37.794369817983],
					[117.42551638217, 37.794369817983],
					[117.42791138234, 37.794369817983],
					[117.43168838219, 37.793487809366],
					[117.43143038245, 37.792436798982],
					[117.43168838219, 37.792436798982],
					[117.43125938274, 37.791249786784],
					[117.43366238242, 37.790740781531],
					[117.43370538208, 37.7917247913],
					[117.43423038268, 37.791486788951],
					[117.43864038219, 37.789485769007],
					[117.43675538255, 37.788102755395],
					[117.42907238208, 37.782464698952],
					[117.42877238251, 37.780294677687],
					[117.42602538288, 37.778394658402],
					[117.42538238227, 37.778835662866],
					[117.42456638231, 37.778258656863],
					[117.42649638216, 37.776819643194],
					[117.42761238259, 37.776751642072],
					[117.42735538267, 37.775191626389],
					[117.42504138269, 37.774977624408],
					[117.42443738244, 37.774886623799],
					[117.42344938205, 37.774648621186],
					[117.42220938267, 37.775179626599],
					[117.42160738207, 37.774739622088],
					[117.42045038253, 37.773890613499],
					[117.42108938294, 37.773190606894],
					[117.41986438272, 37.772382598641],
					[117.41928738224, 37.77200259466],
					[117.42073038291, 37.76957557033],
					[117.41654538263, 37.767693551881],
					[117.41636138251, 37.767610551035],
					[117.41515138236, 37.767065545836],
					[117.41292038222, 37.770830582938],
					[117.41215538232, 37.770382578912],
					[117.40205938213, 37.7644635194],
					[117.40013138283, 37.763333508531],
					[117.40133138293, 37.762179497196],
					[117.40030138271, 37.761534490255],
					[117.40111638284, 37.760788483065],
					[117.40004338207, 37.760007475046],
					[117.39957638209, 37.759661472022],
					[117.39897638294, 37.758983464887],
					[117.3986943829, 37.758652461586],
					[117.3986943829, 37.758347458957],
					[117.39759938239, 37.757227447576],
					[117.3974493826, 37.757193447246],
					[117.39706338281, 37.757397448987],
					[117.39702038225, 37.75734644896],
					[117.39689138238, 37.757380449218],
					[117.39648438268, 37.757040445927],
					[117.39573338211, 37.75758345117],
					[117.39667738212, 37.758414459277],
					[117.39500338237, 37.759585471091],
					[117.39320138257, 37.757922454117],
					[117.39232138214, 37.757906454449],
					[117.39204238248, 37.757651451454],
					[117.3912053826, 37.758041455804],
					[117.39077638226, 37.758041455804],
					[117.39004638251, 37.758211457475],
					[117.38957438251, 37.758313458432],
					[117.38920938264, 37.758364458503],
					[117.38897338263, 37.758075455743],
					[117.3886303825, 37.758075455743],
					[117.38850138263, 37.757939454471],
					[117.38707038255, 37.757961454715],
					[117.38606238207, 37.757961454715],
					[117.38481738267, 37.757893454005],
					[117.3846883828, 37.760031475287],
					[117.38274738218, 37.759861473537]
				]
			]
      }
    }
  ]
};

// 默认导出
export default qingyunMapData;

// 工具函数：获取区域中心点
export const getRegionCenter = (): [number, number] => {
  return qingyunMapData.features[0].properties.center;
};

// 工具函数：获取区域名称
export const getRegionName = (): string => {
  return qingyunMapData.features[0].properties.name;
};

// 工具函数：获取行政区划代码
export const getAdcode = (): number => {
  return qingyunMapData.features[0].properties.adcode;
};